package com.liwujie.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 统一账户信息
 * </p>
 *
 * @author liwujie
 * @since 2025-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("auth_account")
@ApiModel(value="AuthAccount对象", description="统一账户信息")
public class AuthAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "全平台用户唯一id")
    @TableId(value = "uid", type = IdType.AUTO)
    private Long uid;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "创建ip")
    private String createIp;

    @ApiModelProperty(value = "状态 1:启用 0:禁用 -1:删除")
    private Integer status;

    @ApiModelProperty(value = "用户类型见SysTypeEnum 0.普通用户系统 1.商家端 2平台端")
    private Integer sysType;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "所属租户")
    private Long tenantId;

    @ApiModelProperty(value = "是否是管理员")
    private Integer isAdmin;


}
